<p id="title"><?php  echo $this->title; ?>  </p>
<form method="POST" name="boo">

<?php
$action = 'insert';
if (isset ( $this->objectData )) {
	$action = 'update';
}
?>

<input type="hidden" name="actiontype" value="<?php echo $action;?>" />
	<input type="hidden" name="Userpower_id" id="userpower_id"
		value="<?php echo $this->bind('id')?>">
	<div class="elem">
		<label for="userpower_name"> Name </label> <input type="text"
			name="Userpower_name" id="userpower_name"
			value="<?php echo $this->bind('name')?>">
	</div>
	<?php if($action=='insert')
		echo '<input type="hidden" name="Userpower_status" id="userpower_status" value="1">';
	?>
	<button type="submit" onclick="document.boo.submit()"
		style="display: none;">Save</button>
</form>
